package com.ibeetl.admin.api.dao;

import com.ibeetl.admin.api.entity.Travel_guide;
import org.beetl.sql.core.page.PageRequest;
import org.beetl.sql.core.page.PageResult;
import org.beetl.sql.mapper.annotation.Root;
import org.beetl.sql.mapper.annotation.SqlResource;
import org.beetl.sql.mapper.annotation.Update;

import java.util.List;
import java.util.Map;

@SqlResource("api.travelGuide")
public interface TravelGuideDao {
    List<Travel_guide> queryByState(Long userId, Integer isValid);


    List<Long> queryNewIdByUserId(Integer userId);

    Travel_guide queryById(Long guideId);
    public PageResult<Travel_guide> queryByCondition(PageRequest request, @Root Map params);

    @Update
    void audit(Travel_guide travelGuide);
}
